home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / QuickTime / Programming Stuff / Documentation / develop articles / develop Issue 14 / Derived Media Handlers code / MyMediaComponent / QDrawHandler.h < prev   
Encoding:
Text File  |  1993-02-25  |  936 b   |  30 lines  |  [TEXT/KAHL]

  1. //--------------------------------------------------------------------------
  2. //
  3. //        QDrawHandler.h
  4. //            by John Wang
  5. //
  6. //        Version:    1.0        02/25/93    For creating qdraw media type.
  7. //
  8. //--------------------------------------------------------------------------
  9.  
  10. //    Selector definitions for MyComponent calls.
  11.  
  12. #define        QDrawMediaType    'Qdrw'
  13. #define        QDMediaVersion    0x100
  14.  
  15. typedef struct GraphicsDescription {
  16.     long    size;                    // Total size of GraphicsDescription
  17.     long    type;                    // 'qdrw'
  18.     long    resvd1;
  19.     short    resvd2;
  20.     short    dataRefIndex;
  21.     short    version;                //    What version is this data
  22. } QDrawDescription, *QDrawDescriptionPtr, **QDrawDescriptionHandle;
  23.  
  24. //------------------------------------------------------
  25. //    Prototypes.
  26. //------------------------------------------------------
  27.  
  28. pascal OSErr AddGraphics(Media graphicsMedia, PicHandle myPic, 
  29.     QDrawDescriptionHandle QDDesc, TimeValue duration, short mySync, TimeValue *sampleTime);
  30.